var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.inGameDirectionEvent_SetAdditionalEffectVisibleForInGameDirection2();
            cm.fieldEffect_InsertCanvas(1, 255, 0, 0, 0, 0, 0);
            cm.inGameDirectionEvent_PushScaleInfo(0, 0, 1500, 0, 202, 144);
            cm.curNodeEventEnd(true)
        } else {
            if (status === a++) {
                cm.npc_ChangeController(3004442, "oid=529901", 232, 167, 1, 182, 282, 1, true, 0, false);
                cm.npc_SetSpecialAction("oid=529901", "summon", 0, 0);
                cm.npc_ChangeController(3004444, "oid=529902", 299, 171, 1, 249, 349, 1, true, 0, false);
                cm.npc_SetSpecialAction("oid=529902", "summon", 0, 0);
                cm.npc_ChangeController(3004430, "oid=529903", 156, 162, 2, 106, 206, 1, true, 0, false);
                cm.npc_SetSpecialAction("oid=529903", "summon", 0, 0);
                cm.npc_ChangeController(3004437, "oid=529904", 360, 170, 1, 310, 410, 1, true, 0, false);
                cm.npc_SetSpecialAction("oid=529904", "summon", 0, 0);
                cm.npc_ChangeController(3004437, "oid=529905", 416, 170, 1, 366, 466, 1, true, 0, false);
                cm.npc_SetSpecialAction("oid=529905", "summon", 0, 0);
                cm.fieldEffect_InsertCanvas(1, 255, 0, 0, 0, 0, 0);
                cm.inGameDirectionEvent_AskAnswerTime(1200)
            } else {
                if (status === a++) {
                    cm.fieldEffect_InsertCanvas(0, 0, 0, 0, 0, 1000, 0);
                    cm.inGameDirectionEvent_AskAnswerTime(1400)
                } else {
                    if (status === a++) {
                        cm.npc_SetForceMove("oid=529901", -1, 50, 70);
                        cm.npc_SetForceMove("oid=529902", -1, 50, 70);
                        cm.npc_SetForceMove("oid=529903", -1, 50, 70);
                        cm.npc_SetForceMove("oid=529904", -1, 50, 70);
                        cm.npc_SetForceMove("oid=529905", -1, 50, 70);
                        cm.inGameDirectionEvent_AskAnswerTime(2000)
                    } else {
                        if (status === a++) {
                            cm.npc_ChangeController(3004445, "oid=530135", -94, 166, 5, -144, -44, 0, false, 1000, false);
                            cm.npc_SetSpecialAction("oid=530135", "summon", 0, 0);
                            cm.npc_ChangeController(3004443, "oid=530136", -20, 166, 2, -70, 30, 0, false, 1000, false);
                            cm.npc_SetSpecialAction("oid=530136", "summon", 0, 0);
                            cm.inGameDirectionEvent_AskAnswerTime(1500)
                        } else {
                            if (status === a++) {
                                cm.sendNormalTalk_Bottom("#face0#守护者，请等一等。", 37, 3004443, false, true)
                            } else {
                                if (status === a++) {
                                    cm.sendNormalTalk_Bottom("#face0#大神官大人，还请退下。我现在正在按规程执行法律。", 37, 3004430, true, true)
                                } else {
                                    if (status === a++) {
                                        cm.sendNormalTalk_Bottom("#face0#莫非您准备驱逐他们？", 37, 3004443, true, true)
                                    } else {
                                        if (status === a++) {
                                            cm.sendNormalTalk_Bottom("#face0#如今城外到处是乱民，驱逐他们无异于在宣判死刑啊？", 37, 3004443, true, true)
                                        } else {
                                            if (status === a++) {
                                                cm.sendNormalTalk_Bottom("#face0#判决不归我管。", 37, 3004430, true, true)
                                            } else {
                                                if (status === a++) {
                                                    cm.sendNormalTalk_Bottom("#face0#但执行是您的事情。", 37, 3004445, true, true)
                                                } else {
                                                    if (status === a++) {
                                                        cm.sendNormalTalk_Bottom("#face0#恳请您再好好考虑一下。", 37, 3004443, true, true)
                                                    } else {
                                                        if (status === a++) {
                                                            cm.sendNormalTalk_Bottom("#face0#该法令将以主神密特拉以及塞尔提乌王室的名义执行。", 37, 3004430, true, true)
                                                        } else {
                                                            if (status === a++) {
                                                                cm.sendNormalTalk_Bottom("#face0#两位都明白，妨碍它意味着什么。", 37, 3004430, true, true)
                                                            } else {
                                                                if (status === a++) {
                                                                    cm.inGameDirectionEvent_AskAnswerTime(1500)
                                                                } else {
                                                                    if (status === a++) {
                                                                        cm.sendNormalTalk_Bottom("#face0#但是……", 37, 3004443, false, true)
                                                                    } else {
                                                                        if (status === a++) {
                                                                            cm.sendNormalTalk_Bottom("#face0#密特拉是你们的神。", 37, 3004443, true, true)
                                                                        } else {
                                                                            if (status === a++) {
                                                                                cm.inGameDirectionEvent_头顶图片(["Effect/OnUserEff.img/emotion/oh", "oid=529904"], [0, 0, -50, 1, 0, 1, 0, 0]);
                                                                                cm.inGameDirectionEvent_头顶图片(["Effect/OnUserEff.img/emotion/oh", "oid=529905"], [0, 0, -50, 1, 0, 1, 0, 0]);
                                                                                cm.inGameDirectionEvent_AskAnswerTime(1500)
                                                                            } else {
                                                                                if (status === a++) {
                                                                                    cm.sendNormalTalk_Bottom("#face0#没错，那个名字无法制约我们。", 37, 3004445, false, true)
                                                                                } else {
                                                                                    if (status === a++) {
                                                                                        cm.sendNormalTalk_Bottom("#face0#我们所期望的只有一件事。\r\n那就是找到亵渎黎明的人，然后让他们谢罪。", 37, 3004443, true, true)
                                                                                    } else {
                                                                                        if (status === a++) {
                                                                                            cm.sendNormalTalk_Bottom("#face0#我们所期望的还有一事，就是再也不要与他们见面了。", 37, 3004445, true, true)
                                                                                        } else {
                                                                                            if (status === a++) {
                                                                                                cm.inGameDirectionEvent_AskAnswerTime(1500)
                                                                                            } else {
                                                                                                if (status === a++) {
                                                                                                    cm.sendNormalTalk_Bottom("#face0#……", 37, 3004430, false, true)
                                                                                                } else {
                                                                                                    if (status === a++) {
                                                                                                        cm.sendNormalTalk_Bottom("#face0#我知道了。", 37, 3004430, true, true)
                                                                                                    } else {
                                                                                                        if (status === a++) {
                                                                                                            cm.inGameDirectionEvent_AskAnswerTime(1500)
                                                                                                        } else {
                                                                                                            if (status === a++) {
                                                                                                                cm.sendNormalTalk_Bottom("#face3#请将他们也一并逮捕。", 37, 3004430, false, true)
                                                                                                            } else {
                                                                                                                if (status === a++) {
                                                                                                                    cm.inGameDirectionEvent_AskAnswerTime(2500)
                                                                                                                } else {
                                                                                                                    if (status === a++) {
                                                                                                                        cm.fieldEffect_InsertCanvas(1, 255, 0, 0, 0, 500, 0);
                                                                                                                        cm.inGameDirectionEvent_AskAnswerTime(500)
                                                                                                                    } else {
                                                                                                                        if (status === a++) {
                                                                                                                            cm.warp(993140030, 0, false);
                                                                                                                            cm.eventSKill(0);
                                                                                                                            cm.setInGameDirectionMode(false, true, false);
                                                                                                                            cm.setStandAloneMode(false);
                                                                                                                            cm.forceCompleteQuest(37407);
                                                                                                                            cm.updateInfoQuest(37400, "01=h0;02=h0;11=h1;04=h0;05=h1;06=h1;07=h1;08=h1;09=h1");
                                                                                                                            cm.npc_LeaveField("oid=529901");
                                                                                                                            cm.npc_LeaveField("oid=529901");
                                                                                                                            cm.npc_LeaveField("oid=529902");
                                                                                                                            cm.npc_LeaveField("oid=529902");
                                                                                                                            cm.npc_LeaveField("oid=529903");
                                                                                                                            cm.npc_LeaveField("oid=529903");
                                                                                                                            cm.npc_LeaveField("oid=529904");
                                                                                                                            cm.npc_LeaveField("oid=529904");
                                                                                                                            cm.npc_LeaveField("oid=529905");
                                                                                                                            cm.npc_LeaveField("oid=529905");
                                                                                                                            cm.npc_LeaveField("oid=530135");
                                                                                                                            cm.npc_LeaveField("oid=530135");
                                                                                                                            cm.npc_LeaveField("oid=530136");
                                                                                                                            cm.npc_LeaveField("oid=530136");
                                                                                                                            cm.dispose()
                                                                                                                        }
                                                                                                                    }
                                                                                                                }
                                                                                                            }
                                                                                                        }
                                                                                                    }
                                                                                                }
                                                                                            }
                                                                                        }
                                                                                    }
                                                                                }
                                                                            }
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
};